<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:84:"E:\phpset\phpSet\www\new shop\shop\public/../application/index\view\agent\index.html";i:1541838545;s:72:"E:\phpset\phpSet\www\new shop\shop\application\index\view\comm\left.html";i:1541827692;}*/ ?>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>代理商管理</title>
    <meta charset="utf-8" />

</head>

<body class="gray-bg"><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>商城后台</title>
    <link rel="shortcut icon" href="/new shop/shop/public/static/favicon.ico">
    <link href="/new shop/shop/public/static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/animate.min.css" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/style.min.css?v=4.0.0" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <script src="/new shop/shop/public/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="/new shop/shop/public/static/layer/layer.js"></script>
    <script src="/new shop/shop/public/static/js/jia.js"></script>
    <script>
        // $(function(){
        //     //self.location.href="https://www.kancloud.cn/manual/thinkphp5/177529";
        //     $(window.parent.document).find("#iframe").attr("src", "https://www.kancloud.cn/manual/thinkphp5/177529");
        // });
    </script>
</head>
</html>

    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>代理商 <small>管理</small></h5>
                    </div>
                        <div class="ibox-content">
                    <form action="" method="post">
                        <div class="">
                        <a onclick="fnClickAddRow();" href="<?php echo url('index/agent/add'); ?>" class="btn btn-primary ">添加代理商</a>
                    </div>
                        <table class="table table-striped table-bordered table-hover dataTables-example">
                           <thead>
                                <tr>
                                    <th >ID</th>
                                    <th >店铺名称</th>
                                    <th >负责人姓名</th>
                                    <th >负责人手机</th>
                                    <th >负责人邮箱</th>
                                    <th >店铺所在地区</th>
                                    <th >操作</th>
                                </tr>
                            </thead><tbody>
                        <?php if(is_array($agent) || $agent instanceof \think\Collection || $agent instanceof \think\Paginator): $i = 0; $__LIST__ = $agent;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$agent): $mod = ($i % 2 );++$i;?>

                                <tr>
                                    <td ><?php echo $key+1; ?></td>
                                    <td ><?php echo $agent['shop']; ?></td>
                                    <td ><?php echo $agent['name']; ?></td>
                                    <td ><?php echo $agent['iphone']; ?></td>
                                    <td ><?php echo $agent['email']; ?></td>
                                    <td ><?php echo $agent['0']; ?></td>
                                    <td width="25%">
                                    <a  href="mod?id=<?php echo $agent['id']; ?>" class="btn btn-info "><i class="fa fa-paste"></i> <span class="bold">修改</span></a>
                                    <a  href="javascript:;" onclick="deletel('<?php echo url('index/agent/deldo'); ?>',<?php echo $agent['id']; ?>)" class="btn btn-warning "><i class="fa fa-warning"></i><span class="bold">删除</span></a>
                                </td>
                                </tr>

                        <?php endforeach; endif; else: echo "" ;endif; ?></tbody>
                            <tfoot>
                                <tr>
                                    <th >ID</th>
                                    <th >店铺名称</th>
                                    <th >负责人姓名</th>
                                    <th >负责人手机</th>
                                    <th >负责人邮箱</th>
                                    <th >店铺所在地区</th>
                                    <th >操作</th>
                                </tr>
                            </tfoot>
                        </table>
                    </form>
                    </div>
    <script src="/new shop/shop/public/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="/new shop/shop/public/static/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="/new shop/shop/public/static/js/plugins/jeditable/jquery.jeditable.js"></script>
    <script src="/new shop/shop/public/static/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="/new shop/shop/public/static/js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="/new shop/shop/public/static/js/content.min.js?v=1.0.0"></script>
    <script>
        $(document).ready(function(){$(".dataTables-example").dataTable();var oTable=$("#editable").dataTable();oTable.$("td").editable("../example_ajax.php",{"callback":function(sValue,y){var aPos=oTable.fnGetPosition(this);oTable.fnUpdate(sValue,aPos[0],aPos[1])},"submitdata":function(value,settings){return{"row_id":this.parentNode.getAttribute("id"),"column":oTable.fnGetPosition(this)[2]}},"width":"90%","height":"100%"})});function fnClickAddRow(){$("#editable").dataTable().fnAddData(["Custom row","New row","New row","New row","New row"])};
    </script>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>

</body>

</html>
